<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新龙科技</title>
</head>
<body>

<!-- 有if 必须有endif for 和endfor-->

{% if age>18 %}
<div>大于18岁了</div>
{% elif age == 18 %}
<div>刚好18岁了</div>
{% else %}
<div>未满18</div>
{% endif %}


<ul>
    {% for book in list %}
    <li>{{ book.name }}--{{ book.author }}</li>
    {% endfor %}
</ul>


</body>
</html>